/**
 *
 * @Author:    hzw
 * @Date:      2024-08-04 15:31:22
 * @Copyright  xnr
 */
import { postRequest, getRequest, postDownload } from '/@/lib/axios';

const baseUrl = "/iotLog"

export const iotApi = {

  /**
   * 根据日志级别查询日志  @author  hzw
   */
  getLogByLevel: (level) => {
    return getRequest(baseUrl + '/' + level);
  },

  /**
   * 查询具体日志内容  @author  hzw
   */
  getLogContent: (param) => {
    return postRequest(baseUrl + '/getLogContent', {}, param);
  },
};
